<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 星星在唱歌
  Date: 2022/3/15
  Time: 18:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加回复</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/statics/bootstarp/bootstrap.css">
    <script src="${pageContext.request.contextPath}/statics/js/jquery-3.4.1.js"></script>
    <script src="${pageContext.request.contextPath}/statics/bootstarp/bootstrap.js"></script>
    <script src="${pageContext.request.contextPath}/statics/bootstarp/bootstrap-paginator.js"></script>
</head>
<body>
<div class="container">
    <form class="form-horizontal" action="${pageContext.request.contextPath}/replyDetail/add" method="post" onsubmit="return oo()">
        <input type="hidden" name="invid" value="${id}">
        <div class="form-group">
            <h1 class="col-sm-2 control-label page-header">添加回复</h1>
            <br><br>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label" >回复内容:</label>
            <div class="col-sm-6">
                <textarea class="form-control" name="content"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">回复昵称:</label>
            <div class="col-sm-6">
                <input type="text" class="form-control" id="" placeholder="回复昵称" name="author">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-6">
                <input type="submit" class="btn btn-info " >
                <a href="/replyDetail/main/${id}" class="btn btn-info">返回</a>
            </div>
        </div>
    </form>
</div>
<script>
    <c:if test="${add == 'ok'}">
    alert("添加成功")
    </c:if>
    <c:if test="${add == 'no'}">
    alert("添加失败")
    </c:if>
</script>
</body>
</html>
